// 负责管理所有与公司设置相关的网络请求
import request from "@/utils/request";
//获取角色列表
export function getRoleListApi(params){
  return request({
    url:'/sys/role',
    method:'get',
    params
  })
}
//修改角色
export function editRoleApi(data){
  return request({
    url:'/sys/role/'+data.id,
    method:'PUT',
    data
  })
}
//新增角色
export function addRoleApi(data){
  return request({
    url:'/sys/role',
    method:'post',
    data
  })
}
//删除角色
export function delRoleApi(id){
  return request({
    url:'/sys/role/'+id,
    method:'DELETE',
  })
}
//获取公司信息
export function getCompanyInfoApi(id){
  return request({
    url:'/company/'+id,
    method:'get',
  })
}
